/*
 * window verify locked info from 14443A card
 */

#ifndef WINDOW_VERIFY_LOCKED_H
#define WINDOW_VERIFY_LOCKED_H

#include "gkt_types.h"
#include "gkt_rfid.h"


#ifdef __cplusplus
extern "C" {
#endif

#if defined(GKT_CONFIG_DOOR_VERIFY_LOCKED_ENABLE) && GKT_CONFIG_DOOR_VERIFY_LOCKED_ENABLE

#define WINDOW_VERIFY_LOCKED_MAGIC	0x3D71A13C
typedef struct _window_verify_locked {
	uint32_t	magic;
	uint16_t 	status;/*0-不锁定，1-锁定 */
	uint16_t	crc16;	/* data crc, CRC16_CCITT_FALSE, POLY = 0x1021, INIT = 0xFFFF */
	uint32_t	rfu_0;
	uint32_t	rfu_1;	/* reserved */
} window_verify_locked_s;

int window_verify_locked_update_status(gkt_rfid_info_s *rfid_info);

#endif

#ifdef __cplusplus
}
#endif
 
#endif

